<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
	<div th:text="${errorMsg}" ></div>
	<form th:action="@{/doLogin}" method="post">
		账号：<input name="username" /><br/>
		密码：<input name="password" /><br/>
		验证码：<input name="ecode" /><br/>
		<img th:src="@{/ecode}" onclick='javascript:$(this).attr("src", "ecode");'/>
		<input type="submit" value="登陆"/>
	</form>
</body>
</html>